import 'package:flutter/material.dart';
class DrawerDemo extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Drawer(
      child: ListView(
        padding: EdgeInsets.all(0.0),
        children: <Widget>[
          UserAccountsDrawerHeader(
            accountName: Text("wondersgroup"),
            accountEmail: Text("mail.wondersgroup.com"),
            currentAccountPicture: Container(
              child: CircleAvatar(
                child: Image.asset("assets/images/4.jpg"),
              ),
              decoration: BoxDecoration(
                  borderRadius:BorderRadius.circular(90.0)
              ),
            ),
            decoration: BoxDecoration(
                color:Colors.blueAccent,
                image: DecorationImage(
                  image: NetworkImage('http://img.lanrentuku.com/img/allimg/1904/15554203773537.jpg'),
                  fit: BoxFit.cover,
                  colorFilter: ColorFilter.mode(
                      Colors.yellow[400].withOpacity(0.6),
                      BlendMode.hardLight
                  ),
                )
            ),
          ),
          ListTile(
            title:Text("message",textAlign: TextAlign.right,),
            trailing: Icon(Icons.message,size: 18,color: Colors.black26),
          ),
          ListTile(
            title:Text("favorite",textAlign: TextAlign.right,),
            trailing: Icon(Icons.favorite,size: 18,color: Colors.black26),
          ),
          ListTile(
            title:Text("settings",textAlign: TextAlign.right,),
            trailing: Icon(Icons.settings,size: 18,color: Colors.black26,),
          ),
          ListTile(
            title:Text("close",textAlign: TextAlign.right,),
            trailing: Icon(Icons.close,size: 18,color: Colors.black26),
            onTap: ()=>Navigator.pop(context),
          ),
        ],
      ),
    );
  }
}